/**
 * 个人信息
*/
import request from '@/utils/request'

function updateUserinfo (params) {
  return request({
    url: '/user/updateUserinfo',
    method: 'post',
    data: params
  });
}

function updatePassword (params) {
  return request({
    url: '/user/updatePwd',
    method: 'post',
    data: params
  });
}

function uploadAvatar (formData) {
  return request({
    url: '/user/uploadAvatar',
    method: 'post',
    data: formData
  });
}

export {
  updateUserinfo,
  updatePassword,
  uploadAvatar
}
